package com.example.hanlp_service.dto;

public class NamedEntityDTO {
    private String entity;
    private String type;
    private int startPos;
    private int endPos;

    public NamedEntityDTO(String entity, String type, int startPos, int endPos) {
        this.entity = entity;
        this.type = type;
        this.startPos = startPos;
        this.endPos = endPos;
    }

    // Getters and Setters
    public String getEntity() {
        return entity;
    }

    public void setEntity(String entity) {
        this.entity = entity;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getStartPos() {
        return startPos;
    }

    public void setStartPos(int startPos) {
        this.startPos = startPos;
    }

    public int getEndPos() {
        return endPos;
    }

    public void setEndPos(int endPos) {
        this.endPos = endPos;
    }
}